package com.wwwarehouse.common.bean.carddesk;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by minifly on 2017/9/19.
 * 卡片桌面信息框架 固定卡片返回的数据
 */

public class CardDeskMessageStableCardBean {

    /**
     * buIds : [{"buIcon":"测试内容vqau","buId":10768,"buName":"测试内容7h29"}]
     * orderSort : 测试内容6n8v
     * orderType : 测试内容nl4h
     * page : 86866
     * size : 80555
     * taskTags : [{"tagRemark":"测试内容6b42","tagUkid":72555,"tagValue":"测试内容5be5"}]
     * tasks : [{"businessIds":[1,2,3,4,5],"isClick":"测试内容q2pc","isCollect":"测试内容j1vy","needBindBusinessId":34116,"taskImgUrl":"测试内容s5iy","taskName":"测试内容86b3","taskType":"测试内容3466","taskTypeUkid":81064}]
     * total : 62164
     */

    private String orderSort;
    private String orderType;
    private int page;
    private int size;
    private int total;
    private List<BuIdsBean> buIds;
    private List<TaskTagsBean> taskTags;
    private List<TasksBean> tasks;

    public String getOrderSort() {
        return orderSort;
    }

    public void setOrderSort(String orderSort) {
        this.orderSort = orderSort;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<BuIdsBean> getBuIds() {
        return buIds;
    }

    public void setBuIds(List<BuIdsBean> buIds) {
        this.buIds = buIds;
    }

    public List<TaskTagsBean> getTaskTags() {
        return taskTags;
    }

    public void setTaskTags(List<TaskTagsBean> taskTags) {
        this.taskTags = taskTags;
    }

    public List<TasksBean> getTasks() {
        return tasks;
    }

    public void setTasks(List<TasksBean> tasks) {
        this.tasks = tasks;
    }

    public static class BuIdsBean {
        /**
         * buIcon : 测试内容vqau
         * buId : 10768
         * buName : 测试内容7h29
         */

        private String buIcon;
        private String buId;
        private String buName;

        public String getBuIcon() {
            return buIcon;
        }

        public void setBuIcon(String buIcon) {
            this.buIcon = buIcon;
        }

        public String getBuId() {
            return buId;
        }

        public void setBuId(String buId) {
            this.buId = buId;
        }

        public String getBuName() {
            return buName;
        }

        public void setBuName(String buName) {
            this.buName = buName;
        }
    }

    public static class TaskTagsBean implements Parcelable {
        /**
         * tagRemark : 测试内容6b42
         * tagUkid : 72555
         * tagValue : 测试内容5be5
         */

        private String tagRemark;
        private String tagUkid;
        private String tagValue;

        public String getTagRemark() {
            return tagRemark;
        }

        public void setTagRemark(String tagRemark) {
            this.tagRemark = tagRemark;
        }

        public String getTagUkid() {
            return tagUkid;
        }

        public void setTagUkid(String tagUkid) {
            this.tagUkid = tagUkid;
        }

        public String getTagValue() {
            return tagValue;
        }

        public void setTagValue(String tagValue) {
            this.tagValue = tagValue;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.tagRemark);
            dest.writeString(this.tagUkid);
            dest.writeString(this.tagValue);
        }

        public TaskTagsBean() {
        }

        protected TaskTagsBean(Parcel in) {
            this.tagRemark = in.readString();
            this.tagUkid = in.readString();
            this.tagValue = in.readString();
        }

        public static final Parcelable.Creator<TaskTagsBean> CREATOR = new Parcelable.Creator<TaskTagsBean>() {
            @Override
            public TaskTagsBean createFromParcel(Parcel source) {
                return new TaskTagsBean(source);
            }

            @Override
            public TaskTagsBean[] newArray(int size) {
                return new TaskTagsBean[size];
            }
        };
    }

    public static class TasksBean implements Parcelable {
        /**
         * businessIds : [1,2,3,4,5]
         * isClick : 测试内容q2pc
         * isCollect : 测试内容j1vy
         * needBindBusinessId : 34116
         * taskImgUrl : 测试内容s5iy
         * taskName : 测试内容86b3
         * taskType : 测试内容3466
         * taskTypeUkid : 81064
         */

        private String isClick;
        private String isCollect;
        private String needBindBusinessId;
        private String taskImgUrl;
        private String taskName;
        private String taskType;
        private String taskTypeUkid;
        private List<String> businessIds;
        private List<TasksBeanBuidNames> tasksBeanBuidNames;

        public List<TasksBeanBuidNames> getTasksBeanBuidNames() {
            return tasksBeanBuidNames;
        }

        public void setTasksBeanBuidNames(List<TasksBeanBuidNames> tasksBeanBuidNames) {
            this.tasksBeanBuidNames = tasksBeanBuidNames;
        }

        public String getIsClick() {
            return isClick;
        }

        public void setIsClick(String isClick) {
            this.isClick = isClick;
        }

        public String getIsCollect() {
            return isCollect;
        }

        public void setIsCollect(String isCollect) {
            this.isCollect = isCollect;
        }

        public String getNeedBindBusinessId() {
            return needBindBusinessId;
        }

        public void setNeedBindBusinessId(String needBindBusinessId) {
            this.needBindBusinessId = needBindBusinessId;
        }

        public String getTaskImgUrl() {
            return taskImgUrl;
        }

        public void setTaskImgUrl(String taskImgUrl) {
            this.taskImgUrl = taskImgUrl;
        }

        public String getTaskName() {
            return taskName;
        }

        public void setTaskName(String taskName) {
            this.taskName = taskName;
        }

        public String getTaskType() {
            return taskType;
        }

        public void setTaskType(String taskType) {
            this.taskType = taskType;
        }

        public String getTaskTypeUkid() {
            return taskTypeUkid;
        }

        public void setTaskTypeUkid(String taskTypeUkid) {
            this.taskTypeUkid = taskTypeUkid;
        }

        public List<String> getBusinessIds() {
            return businessIds;
        }

        public void setBusinessIds(List<String> businessIds) {
            this.businessIds = businessIds;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.isClick);
            dest.writeString(this.isCollect);
            dest.writeString(this.needBindBusinessId);
            dest.writeString(this.taskImgUrl);
            dest.writeString(this.taskName);
            dest.writeString(this.taskType);
            dest.writeString(this.taskTypeUkid);
            dest.writeStringList(this.businessIds);
            dest.writeTypedList(this.tasksBeanBuidNames);
        }

        public TasksBean() {
        }

        protected TasksBean(Parcel in) {
            this.isClick = in.readString();
            this.isCollect = in.readString();
            this.needBindBusinessId = in.readString();
            this.taskImgUrl = in.readString();
            this.taskName = in.readString();
            this.taskType = in.readString();
            this.taskTypeUkid = in.readString();
            this.businessIds = in.createStringArrayList();
            this.tasksBeanBuidNames = in.createTypedArrayList(TasksBeanBuidNames.CREATOR);
        }

        public static final Parcelable.Creator<TasksBean> CREATOR = new Parcelable.Creator<TasksBean>() {
            @Override
            public TasksBean createFromParcel(Parcel source) {
                return new TasksBean(source);
            }

            @Override
            public TasksBean[] newArray(int size) {
                return new TasksBean[size];
            }
        };
    }

    public static class TasksBeanBuidNames implements Parcelable {
        private String name , id;

        public TasksBeanBuidNames(String name, String id) {
            this.name = name;
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.name);
            dest.writeString(this.id);
        }

        public TasksBeanBuidNames() {
        }

        protected TasksBeanBuidNames(Parcel in) {
            this.name = in.readString();
            this.id = in.readString();
        }

        public static final Parcelable.Creator<TasksBeanBuidNames> CREATOR = new Parcelable.Creator<TasksBeanBuidNames>() {
            @Override
            public TasksBeanBuidNames createFromParcel(Parcel source) {
                return new TasksBeanBuidNames(source);
            }

            @Override
            public TasksBeanBuidNames[] newArray(int size) {
                return new TasksBeanBuidNames[size];
            }
        };
    }
}
